<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据类型</title>
</head>

<body>

    <script>
        // 一、基本类型
        // 1. 数字 number
        let a = 100;
        let b = -10;
        let c = 0.5;  // 浮点数
        let d = NaN;  // Not a Number

        // 2. 字符串 string
        let name = "张三";
        let gender = '女';
        let age = '18';
        let phone = `13511111111`;

        // 3. 布尔值 boolean
        let e = true;
        let f = false;

        // 4. 未定义 undefined
        let g;
        console.log(g);

        // 5. 空值 null
        let h = null;

        // 6. 唯一值 symbol
        // 7. 大正数 BigInt


    </script>
</body>

</html>